# Basic types ```{eval-rst} .. py:class:: Point: :nocontentsentry: Represents a point with x, y and z coordinates in 3D space .. py:method:: __init__(x, y, z, unit) :nocontentsentry: Initializes a Point3d structure :param float x: X coordinate :param float y: Y coordinate :param float z: Z coordinate :param str unit: Unit to use .. py:method:: x() :nocontentsentry: X coordinate :return: :rtype: float .. py:method:: y() :nocontentsentry: Y coordinate :return: :rtype: float .. py:method:: z() :nocontentsentry: Z coordinate :return: :rtype: float .. py:method:: getUnit() :nocontentsentry: Obtains the unit as a string :return: :rtype: string .. py:method:: getFormula() :nocontentsentry: Obtains the formula used by the object if set :return: :rtype: Formula ``` ```{eval-rst} .. py:class:: Vector: :nocontentsentry: Represents a vector with x, y and z values in 3D space .. py:method:: __init__(x, y, z, unit) :nocontentsentry: Initializes a Vector3d structure :param float x: X coordinate :param float y: Y coordinate :param float z: Z coordinate :param str unit: Unit to use .. py:method:: x() :nocontentsentry: X coordinate :return: :rtype: float .. py:method:: y() :nocontentsentry: Y coordinate :return: :rtype: float .. py:method:: z() :nocontentsentry: Z coordinate :return: :rtype: float .. py:method:: getUnit() :nocontentsentry: Obtains the unit as a string :return: :rtype: string .. py:method:: getFormula() :nocontentsentry: Obtains the formula used by the object if set :return: :rtype: Formula ``` ```{eval-rst} .. py:class:: Double: :nocontentsentry: Represents a double value with a unit .. py:method:: __init__(value, unit) :nocontentsentry: Initializes a Double structure :param float value: Initial value :param str unit: Unit to use .. py:method:: value() :nocontentsentry: Initial value :return: :rtype: float .. py:method:: unit() :nocontentsentry: Unit to use :return: :rtype: str .. py:method:: getValue() :nocontentsentry: Obtains the value as float :return: :rtype: float .. py:method:: getValueUnit(unit) :nocontentsentry: Obtains the value as float, for the unit given :param string unit: :return: :rtype: float .. py:method:: getUnit() :nocontentsentry: Obtains the unit as a string :return: :rtype: string .. py:method:: getFormula() :nocontentsentry: Obtains the formula used by the object if set :return: :rtype: Formula ``` ```{eval-rst} .. py:class:: List: :nocontentsentry: Container for a list of model elements. Can be accessed with [ ] .. py:method:: front() :nocontentsentry: Obtains the first element :return: First element, if not empty :rtype: Element type .. py:method:: back() :nocontentsentry: Obtains the last element :return: Last element, if not empty :rtype: Element type .. py:method:: size() :nocontentsentry: Obtains the list size :return: :rtype: int .. py:method:: empty() :nocontentsentry: Checks if the list is empty :return: :rtype: bool .. py:method:: push(newElement) :nocontentsentry: Insert an element at the end of the list :param float newElement: New value ``` ```{eval-rst} .. py:class:: Table: :nocontentsentry: Container for a matrix of model elements .. py:method:: get(i, j) :nocontentsentry: Obtains an element value :param int i: Row :param int j: Column :return: :rtype: Element type .. py:method:: set(i, j, newValue) :nocontentsentry: Changes the value of an element :param int i: Row :param int j: Column :param Element type newValue: .. py:method:: getNumRows() :nocontentsentry: Get the number of rows :return: :rtype: int .. py:method:: getNumCols() :nocontentsentry: Get the number of columns :return: :rtype: int .. py:method:: setTableUnit(unit) :nocontentsentry: Sets the unit for the table data :param str unit: Unit to use .. py:method:: setFirstRowUnit(unit) :nocontentsentry: Sets the unit for the row header :param str unit: Unit to use .. py:method:: setFirstColUnit(unit) :nocontentsentry: Sets the unit for the column header :param str unit: Unit to use .. py:method:: insertRow(cellValue) :nocontentsentry: Inserts a row in an orderer position using the value given for the cell :param Element type cellValue: New value .. py:method:: insertCol(cellValue) :nocontentsentry: Inserts a column in an orderer position using the value given for the cell :param Element type cellValue: New value .. py:method:: removeRow(rowNumber) :nocontentsentry: Removes a row :param int rowNumber: Row .. py:method:: removeColumn(colNumber) :nocontentsentry: Remove a column :param int colNumber: Column ``` ```{eval-rst} .. py:class:: Formula: :nocontentsentry: Represents a CivilFEM formula string .. py:method:: __init__(strFormula) :nocontentsentry: Initializes a Formula structure :param str strFormula: String with formula .. py:method:: evaluate() :nocontentsentry: Evaluate the formula and get the result as a string :return: :rtype: string with the result of the formula ```